package com.aaa.generics.demo02;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: 泛型实例类
 * @date 2022/10/25
 * 解决demo01中的数据类型安全问题
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//" T "指定泛型的标识
public class Generics<T> {
    private T x;
    private T y;
}
